package com.simou.dao;

import com.simou.pojo.Provider;
import com.simou.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProviderMapper {
    //根据条件查询用户          limit start,pageSize
    List<Provider> getProvidersByLimit(@Param("start") int start, @Param("pageSize") int pageSize, @Param("proCode") String proCode, @Param("proName") String proName);

    int getProvidersCount(@Param("proCode") String proCode,@Param("proName") String proName);

    int addProvider(Provider provider);

    int updateProvider(@Param("proid") long proid,@Param("provider")Provider provider);

    int deleteProvider(long proid);
}
